#import "BRResultModel.h"
@implementation BRResultModel
- (BOOL)isEqual:(id)object {
    if (self == object) {
        return YES;
    }
    if (![object isKindOfClass:[BRResultModel class]]) {
        return NO;
    }
    BRResultModel *model = (BRResultModel *)object;
    if (!model) {
        return NO;
    }
    BOOL isSameKey = (!self.key && !model.key) || [self.key isEqualToString:model.key];
    BOOL isSameValue = (!self.value && !model.value) || [self.value isEqualToString:model.value];
    return isSameKey && isSameValue;
}
- (NSUInteger)hash {
    return [self.key hash] ^ [self.value hash];
}
@end
